package pl.edu.uj.tcs.blef.protocol;

/**
 * Exception which represents a build failure.
 * @author Maciej Bendkowski
 *
 */
public final class BuildFailedException extends Exception {
	private static final long serialVersionUID = 184573169298563188L;
	
	/**
	 * Contains the acctual error message.
	 * @uml.property  name="error"
	 */
	private String error;

	/**
	 * Creates a new BuildErrorException which contains the given error message.
	 */
	public BuildFailedException(String error){
		this.error = error;
	}
			
	/**
	 * Simply return the error message.
	 */
	@Override
	public String toString(){
		return this.error;
	}
}
